package io.github.xbeeant.eoffice.model;

import io.github.xbeeant.core.BaseModelObject;
import java.io.Serializable;

/**
 * 
 * eoffice_resources_event
 */
public class ResourcesEvent extends BaseModelObject<Long> implements Serializable {
    /**
     * 
     * 事件ID
     */
    private Long eid;

    /**
     * 
     * 资源ID
     */
    private Long rid;

    /**
     * 
     * 分组ID
     */
    private Long gid;

    /**
     * 
     * 被操作对象
     */
    private String doObj;

    /**
     * 
     * 事体类型
     */
    private String eventType;

    /**
     * 
     * 0操作，1评论
     */
    private Boolean type;

    /**
     * 
     * 目录ID
     */
    private Long fid;

    /**
     *
     * eoffice_resources_event.done
     */
    private String done;

    /**
     * 
     * 用户名
     */
    private String username;

    /**
     * 
     * 事件消息体
     */
    private String bodyData;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table eoffice_resources_event
     *
     * @mbg.generated Sat Jul 10 16:47:00 CST 2021
     */
    private static final long serialVersionUID = 1L;

    /**
     * get field 事件ID
     * @return eid 事件ID
     */
    public Long getEid() {
        return eid;
    }

    /**
     * set filed 事件ID
     * @param eid the value for 事件ID
     */
    public void setEid(Long eid) {
        this.eid = eid;
    }

    /**
     * get field 资源ID
     * @return rid 资源ID
     */
    public Long getRid() {
        return rid;
    }

    /**
     * set filed 资源ID
     * @param rid the value for 资源ID
     */
    public void setRid(Long rid) {
        this.rid = rid;
    }

    /**
     * get field 分组ID
     * @return gid 分组ID
     */
    public Long getGid() {
        return gid;
    }

    /**
     * set filed 分组ID
     * @param gid the value for 分组ID
     */
    public void setGid(Long gid) {
        this.gid = gid;
    }

    /**
     * get field 被操作对象
     * @return doObj 被操作对象
     */
    public String getDoObj() {
        return doObj;
    }

    /**
     * set filed 被操作对象
     * @param doObj the value for 被操作对象
     */
    public void setDoObj(String doObj) {
        this.doObj = doObj == null ? null : doObj.trim();
    }

    /**
     * get field 事体类型
     * @return eventType 事体类型
     */
    public String getEventType() {
        return eventType;
    }

    /**
     * set filed 事体类型
     * @param eventType the value for 事体类型
     */
    public void setEventType(String eventType) {
        this.eventType = eventType == null ? null : eventType.trim();
    }

    /**
     * get field 0操作，1评论
     * @return type 0操作，1评论
     */
    public Boolean getType() {
        return type;
    }

    /**
     * set filed 0操作，1评论
     * @param type the value for 0操作，1评论
     */
    public void setType(Boolean type) {
        this.type = type;
    }

    /**
     * get field 目录ID
     * @return fid 目录ID
     */
    public Long getFid() {
        return fid;
    }

    /**
     * set filed 目录ID
     * @param fid the value for 目录ID
     */
    public void setFid(Long fid) {
        this.fid = fid;
    }

    /**
     * get field eoffice_resources_event.done
     * @return done eoffice_resources_event.done
     */
    public String getDone() {
        return done;
    }

    /**
    eoffice_resources_event.done
     *
     * @param done the value for eoffice_resources_event.done
     */
    public void setDone(String done) {
        this.done = done == null ? null : done.trim();
    }

    /**
     * get field 用户名
     * @return username 用户名
     */
    public String getUsername() {
        return username;
    }

    /**
     * set filed 用户名
     * @param username the value for 用户名
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    /**
     * get field 事件消息体
     * @return bodyData 事件消息体
     */
    public String getBodyData() {
        return bodyData;
    }

    /**
     * set filed 事件消息体
     * @param bodyData the value for 事件消息体
     */
    public void setBodyData(String bodyData) {
        this.bodyData = bodyData == null ? null : bodyData.trim();
    }

    @Override
    public Long valueOfKey() {
        return eid;
    }

    @Override
    public void assignKeyValue(Long value) {
        this.eid = value;
    }
}